package com.shop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shop.pojo.UserAddress;
import com.shop.vo.UserAddressQueryRequest;
import com.shop.vo.UserAddressSaveRequest;
import com.shop.vo.UserAddressUpdateRequest;


import java.util.Map;

/**
 * 用户地址表 
 *
 * @author yukangkang
 * @email sunlightcs@gmail.com
 * @date 2020-10-30 13:16:29
 */
public interface UserAddressService extends IService<UserAddress> {

    IPage<UserAddress> page(Page page, UserAddressQueryRequest request);

    void save(UserAddressSaveRequest request);

    void update(UserAddressUpdateRequest request);

    void delete(String id);

    void setDefalut(String userId, String addressId);
}

